package cn.newstrength.qiyiming.step;

import cn.newstrength.wtdf.plugin.service.JWTService;
import cn.newstrength.wtdf.web.processor.Operation;
import cn.newstrength.wtdf.web.processor.OperationStep;

import java.util.Map;

public class VerifyJWTStep implements OperationStep {
	
	@Override
	public int excute(Operation oper) {
		String accessToken = oper.getAccessToken();
		Map<String,String> data = JWTService.toMap(accessToken);
		oper.setTranStepSuccResult(data);
		return 0;
	}

	@Override
	public int init(Map<String, String> arg0) {
		return 0;
	}
}

